﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace GermaneShanidze.Applications.Jokeri.LobbyDuplexService
{
    [ServiceContract (CallbackContract = typeof(ILobbyDuplexServiceCallback))]
    public interface ILobbyDuplexService
    {
        [OperationContract(IsOneWay = true)]
        void InvitePlayer(Invitation invite);
    }

    [ServiceContract]
    public interface ILobbyDuplexServiceCallback
    {
        [OperationContract(IsOneWay=true)]
        void RespondToInvite(bool response);
    }

    [DataContract]
    public class Invitation
    {
        [DataMember]
        public long Invitee { get; set; }

        [DataMember]
        public long Inviter { get; set; }
    }
}
